package com.youlai.boot.modules.comment.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "评论视图对象")
@Data
public class CommentVO {
    @Schema(description = "评论ID")
    private Long id;

    @Schema(description = "评论内容")
    private String content;

    @Schema(description = "商户ID")
    private Long merchantId;

    @Schema(description = "父评论ID")
    private Long parentId;

    @Schema(description = "根评论ID")
    private Long rootId;

    @Schema(description = "评论用户ID")
    private Long userId;

    @Schema(description = "被回复的用户ID")
    private Long replyToUserId;

    @Schema(description = "点赞数")
    private Integer likes;

    @Schema(description = "状态：0-删除 1-正常")
    private Integer status;

    @Schema(description = "创建时间")
    private LocalDateTime createdAt;

    @Schema(description = "子评论列表")
    private List<CommentVO> children;
}